/*
 * ParamsConfig.java
 *
 * Created on February 5, 2009, 4:35 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.vacuela.phonecredits;


import com.u2d.model.AbstractComplexEObject;
import com.u2d.model.EObject;
import com.u2d.model.Title;
import com.u2d.type.atom.Email;
import com.u2d.type.atom.StringEO;
import com.u2d.type.atom.TextEO;
import com.u2d.type.atom.USPhone;
import com.u2d.type.composite.Contact;
import com.u2d.type.composite.ContactMethod;
import com.u2d.type.composite.Emailable;
import com.u2d.type.composite.USAddress;

/**
 *
 * @author nestor.carrasco
 */

public class ParamsConfig extends AbstractComplexEObject{
    private final StringEO _paramName = new StringEO();
    private final TextEO _paramValue = new TextEO();
    
    public static String[] fieldOrder = {"paramName", "paramValue"};
    public static String[] identities = {"paramName"};
    
    public ParamsConfig() {}
    
    public ParamsConfig(String key, String value){
        _paramName.setValue(key);
        _paramValue.setValue(value);
		
    }
    
    public StringEO getParamName() {
        return _paramName;
    }
    
    public TextEO getParamValue(){
        return _paramValue;
    }

    
    public Title title() {
        
        return _paramName.title().append("=>")
        .append(_paramValue);
        
    }
    public String toString() {
        return title().toString();
    }
}
